import permission from './permission';
import haspermi from './hasPermi';

const install = function(Vue) {
  Vue.directive('permission', permission);
  Vue.directive('haspermi', haspermi);
};

if (window.Vue) {
  window['permission'] = permission;
  window['haspermi'] = haspermi;
  Vue.use(install); // eslint-disable-line
}

export default install;
